﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace HitachiService.DBAccess
{
    public class UtilsAccess : DataAccess
    {
        public static WholeLineData GetWholeLineData(int project_id)
        {
            WholeLineData data = new WholeLineData();
            List<ProjectData> projects = ProjectAccess.GetProjectsByParentId(project_id);
            List<ScheduleData> schedules = ScheduleAccess.GetSchedulesByParentProject(project_id);
            data.Projects = projects;
            data.Schedules = schedules;
            return data;
        }
    }
}